<?php

//防止恶意调用
if (!defined('IN_MOD'))
{
    die('Hacking attempt');
}

// FastXCMS安装信息
if($configinfo['fastxcmsok'] == 1)
{
	// 获取商品订购功能信息
	if($configinfo['shopok'] == 1)
	{
		// 促销价格设置
		$promotestatus_name = getdesignatedname("promotestatus");// 促销状态
		$promotetime_name = getdesignatedname("datetype_promotetime");// 促销时间
		$this->assign('promotestatus_name', $promotestatus_name);
		$this->assign('promotetime_name', $promotetime_name);
		// 促销价格
		$discountprice = getgoodsdiscountprice($article['price'],$article['id']);
		$this->assign('discountprice', $discountprice);
		// 结束时间还剩
		$promotesytime = timediff(time(),$article["original_".$promotetime_name]);
		$this->assign('promotesytime', $promotesytime);	
		
		// 积分兑换设置
		$integralstatus_name = getdesignatedname("integralstatus");// 是否开启
		$this->assign('integralstatus_name', $integralstatus_name);
		// 积分价格
		$integralprice = $article['integralprice'];
		$exchangeprice = $article['exchangeprice'];
		$this->assign('integralprice', $integralprice);
		$this->assign('exchangeprice', $exchangeprice);
		
		// 积分抵扣设置
		$integraldkstatus_name = getdesignatedname("integraldkstatus");// 是否开启
		$this->assign('integraldkstatus_name', $integraldkstatus_name);
		// 抵扣价格
		$integraldkprice = $article['integraldkprice'];
		$this->assign('integraldkprice', $integraldkprice);
	}
}
?>